cmake_minimum_required(VERSION 3.10)
project(rm_auto_aim)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS ON)

if(NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Release)
endif()

add_compile_options(-Wall)
# find_package(ament_cmake REQUIRED)
find_package(ament_cmake_auto REQUIRED)
# find_package(rclcpp REQUIRED)
# find_package(sensor_msgs REQUIRED)
# find_package(hikvision_ros2_driver REQUIRED)
ament_auto_find_build_dependencies()

# find_package(OpenCV REQUIRED)
# include_directories(${OpenCV_INCLUDE_DIRS})

# add_executable(show_image src/show_image.cpp)

# include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../hikvision_ros2_driver/include)
# link_directories(/home/kaslana/hikvision_ros2_driver/install/hikvision_ros2_driver/lib)

# target_link_libraries(show_image
#                       ${OpenCV_LIBS} 
#                       hikvision_ros2_driver 
#                       )
# target_include_directories(show_image PUBLIC /home/kaslana/hikvision_ros2_driver/install/auto_aim_interfaces/include)
# ament_target_dependencies(show_image rclcpp sensor_msgs)

if(BUILD_TESTING)
  find_package(ament_lint_auto REQUIRED)
  set(ament_cmake_copyright_FOUND TRUE)
  ament_lint_auto_find_test_dependencies()
endif()

install(DIRECTORY
        launch
        DESTINATION share/${PROJECT_NAME}
        )
# install(TARGETS
#         show_image
#         DESTINATION lib/${PROJECT_NAME}
#         )

ament_auto_package()
